package labox.innovation.gameserver.skills.conditions;

import labox.innovation.gameserver.skills.Env;

public class ConditionPlayerHpPercentage extends Condition {
	private double _p;

	public ConditionPlayerHpPercentage(double p) {
		_p = p;
	}

	@Override
	public boolean testImpl(Env env) {
		return env.player.getCurrentHp() <= env.player.getMaxHp() * _p;
	}
}
